def to_adminuser(adminuser):
    data = {
        "name":adminuser.name,
        "tag":"主管理员" if adminuser.tag==0 else "附属管理员",
        "from":adminuser.count.name
    }
    return data

def to_adminusers(adminusers):
    re_adminusers = []
    for adminuser in adminusers:
        re_adminusers.append(to_adminuser(adminuser))
    return re_adminusers
